package com.xm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品类别
 * @author 康文程
 * @date 2024-1-7 下午 11:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Category {
    private Integer categoryId;
    private String categoryName;
    private Integer modelId;
    private Model model;

    public Category(Integer categoryId, String categoryName) {
        this.categoryId = categoryId;
        this.categoryName = categoryName;
    }

    public Category(String categoryName, Model model) {
        this.categoryName = categoryName;
        this.model = model;
    }

    public Category(Integer categoryId) {
        this.categoryId = categoryId;
    }
    public Category(String categoryName) {
        this.categoryName = categoryName;
    }
}
